package com.inetools.gwetons.client.timer;


import com.google.gwt.inject.client.AbstractGinModule;
import com.google.inject.Provider;
import com.google.inject.Singleton;
import com.inetools.gwetons.shared.timer.TimerControllerIntf;

public class TimerUniControllerGinModule extends AbstractGinModule {
	
	protected static class TimerSingletonControllerProvider implements Provider<TimerControllerIntf> {
		@Override
		public TimerControllerIntf get() {
			return TimerControllerUniInstanceHolder.getInstance();
		}
	}

	@Override
	protected void configure() {
		bind( TimerControllerIntf.class)
		.toProvider( TimerSingletonControllerProvider.class).in( Singleton.class);
	}
}
